package edu.sctu.practice.class02.xuejiahua.assign03;

/**
 * Created by Administrator on 2015/10/26.
 */
public class StaticMenthed {
    static boolean equalArea(GeometricObject object1, GeometricObject object2){
        boolean a = true;
        if(object1.findArea() != object2.findArea()){
            a = false;

        }
        return a;

    }



    static void displayGeometricObject(GeometricObject object){
        System.out.println("面积："+object.findArea());
        System.out.println("周长："+object.findPerimeter());
        System.out.println("颜色："+object.color);


    }
}
